<script>
<?php if(isset($_GET['message'])):?>alert("<?php echo $_GET['message']?>");<?php endif?>
window.parent.location.href="<?php echo Yii::app()->createUrl("site/login");?>";
</script>